<template>
    <div id="app">
        <router-view></router-view>
        <FooterGuide v-show="$route.meta.showFooter"></FooterGuide>
    </div>
</template>

<script>
    import FooterGuide from "./components/FooterGuide/FooterGuide"
    import {mapActions} from 'vuex'

    export default {
        name: "App",
        mounted () {
          this.$store.dispatch('getAddress');
          this.$store.dispatch('getCategorys');
          this.$store.dispatch('getShops');
          // this.getAddress()
          this.$store.dispatch('getUserInfo');

        },
        methods:{
            ...mapActions(['getAddress'])
        },
        components:{
            FooterGuide
        }
    }
</script>

<style lang="stylus" scoped>

</style>
